
/**
* get the transaction type
* if PO 
* YES: Establish the communication of parent and children
* NO : Do nothing
*
*/
function getTypeTx1(srcObject){
  
  var _COMMA_SEPARATOR  = ",";
  var _SMALLER          = 200;
  var _BASE_HTML        = "http://localhost/ecs/tocmenu_51.php";
  var _TYPE_PO          = 1;
  
  srcObject = document.getElementsByName(srcObject);
  srcObject = srcObject[0];
  
  if(srcObject.value == _TYPE_PO){
    
    /**
    * Fetch the opener properties
    *
    */
    var _HEIGHT = 800 + _COMMA_SEPARATOR;
    var _WIDTH  = 600 + _COMMA_SEPARATOR;
    
    hdlChild = window.open((_BASE_HTML + "?transVariable=1"),
                           "quickChild",
                           ("height=" + _HEIGHT + 
                            "width="  + _WIDTH  + 
                            "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0"));
  }
}

/**
* get the transaction type
* if PO 
* YES: Establish the communication of parent and children
* NO : Do nothing
*
*/
function getTypeTx0(){
  
  var _COMMA_SEPARATOR  = ",";
  var _SMALLER          = 200;
  var _BASE_HTML        = "http://localhost/ecs/tocmenu_51.php";
  var _TYPE_PO          = 1;
  

  /**
  * Fetch the opener properties
  *
  */
  var _HEIGHT = 800 + _COMMA_SEPARATOR;
  var _WIDTH  = 600 + _COMMA_SEPARATOR;
  
  hdlChild = window.open((_BASE_HTML + "?transVariable=1"),
                         "quickChild",
                         ("height=" + _HEIGHT + 
                          "width="  + _WIDTH  + 
                          "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0"));
}